/* eslint-disable */
import fly from '@/jslibs/dk-flyio'

// 获取七牛token
export const getUpdateToken = () => fly.get('mini/common/qiniu')
// 用户注册
export const getminiRegister = params => fly.post('mini/account/register', params)
// 绑定手机号
export const getbindPhone = params => fly.post('mini/account/register/phone', params)
// 用户认证
export const getminiStaff = params => fly.post('mini/account/staff', params)
// 发送验证码
export const sendPhone = params => fly.get('/mini/common/phone/send', params)
// 校验验证码
export const checkPhoneCode = params => fly.post('mini/common/phone/verify-code', params)
// 员工认证详情
export const getStaffDetails = () => fly.get('mini/account/staff-details')
// 员工详情
export const getUserInfo = () => fly.get('mini/account/user-details')
// 公司列表
export const getCompanyList = params => fly.get('mini/account/companies', params)
// 公司详情
export const getCompanyDetails = params => fly.get(`/mini/account/company-details/${params}`)
// 获取用户formid
export const getUserFormId = params => fly.post(`mini/common/from-id?fromId=${params}`)
// 推荐同事
export const recommendUser = params => fly.get('/mini/account/recommend-user', params)
// 检验员工手机号码是否可激活
export const staffPhoneVerify = params => fly.get(`/mini/account/staff-phone-verify/${params}`)
// 激活
export const staffPhoneActivate = params => fly.get(`/mini/account/staff-phone-activate/${params}`)
// 验证公司邀请码
export const checkCompanyInvite = params => fly.get('/mini/account/company-details', params)
// 退出公司
export const signOutCompany = () => fly.get('/mini/account/quit-company')
